package com.company;

import java.util.ArrayList;

public abstract class Creature {
    private String id;
    private String description;
    private int HPVaule;
    //用weapon,作用于targetCreature

    //1
    private Weapon currentWeapon;
    private ArrayList<Weapon> weapons = new ArrayList<>();
    public abstract void useArticle(Weapon weapon, Creature creature);

    public Creature() {
    }

    public Creature(String id, String description) {
        this.id = id;
        this.description = description;
    }

    public Creature(String id, String description, int HPVaule) {
        this.id = id;
        this.description = description;
        this.HPVaule = HPVaule;
    }

    public int getHPVaule() {
        return HPVaule;
    }

    public void setHPVaule(int HPVaule) {
        this.HPVaule = HPVaule;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Weapon getCurrentWeapon() {
        return currentWeapon;
    }

    public void setCurrentWeapon(Weapon currentWeapon) {
        this.currentWeapon = currentWeapon;
    }

    public ArrayList<Weapon> getWeapons() {
        return weapons;
    }

    public void setWeapons(ArrayList<Weapon> weapons) {
        this.weapons = weapons;
    }
}
